package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author :xs
 * @date : 2022/7/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dorm {

   //宿舍表
    private Integer id;
    //护士id
    private String empId;
   // 门牌号
    private String dormId;
    //名字
    private  String name;
    //地址
    private String phone;
    //房间类型
    private String typename;
 //入住时间
 @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
 @DateTimeFormat(pattern = "yyyy-MM-dd")
 private Date time;

}
